<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%cate_relation}}".
 *
 * @property integer $id
 * @property integer $object_id
 * @property integer $cate_id
 * @property integer $type
 */
class CateRelation extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%cate_relation}}';
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['object_id', 'cate_id', 'type'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', '自增id'),
            'object_id' => Yii::t('zhtfrontend', '目标 id'),
            'cate_id' => Yii::t('zhtfrontend', '分类 id'),
            'type' => Yii::t('zhtfrontend', '模式（1 教师 2 教室）'),
        ];
    }
}
